package com.itheima.mapper;

import com.itheima.pojo.Student;
import com.itheima.pojo.StudentQueryParam;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface StudentMapper {

    List<Student> page(StudentQueryParam param);

    void delete(Integer[] ids);

    void insert(Student student);

    void update(Student student);

    Student selectById(Integer id);

    @MapKey("name")
    List<Map> getStuDegreeData();

    @MapKey("clazzName")
    List<Map> getStuCountData();

    int countByClazzId(Integer clazzId);
}
